def readInterfacelog():
    with open("c:\\Users\\Administrator\\Desktop\\20191023\\spring_log.log", encoding='UTF-8') as f:
        name = []
        for line in f.readlines():
            if "办事接口接受字段" in line:
                print(line)
                name.append(line)

        else:
            print("测试")

    file = open('c:\\Users\\Administrator\\Desktop\\20191023\\data.txt', 'w', encoding='UTF-8')
    for ni in name:{
      file.writelines("%s\n" % ni)
    }
    file.close()

def DemoPythonString():
     nn = "hdhd,ddsd"
     split = nn.split( "," )
     print(split)


#readInterfacelog()
DemoPythonString()